
<include file="Public/header"/><body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <div class="nav">
    <ul class="cc">
      <li <if condition=" !isset($_GET['status']) || $_GET['status']==1 && empty($itemtype) ">class="current"</if>><a href="{:U('Suipai/index')}">通过列表</a></li>
        <li <if condition=" isset($_GET['status']) && $_GET['status']==0 ">class="current"</if>><a href="{:U('Suipai/index', array('search'=>1 ,'status'=>0))}">待审核</a></li>
        <li <if condition=" $_GET['status']==2 ">class="current"</if>><a href="{:U('Suipai/index', array('search'=>1 ,'status'=>2))}">未通过审核</a></li>
    </ul>
  </div>
  <div class="h_a">搜索</div>
  <form method="post" action="{:U('index')}">
  <input type="hidden" value="1" name="search">
    <div class="search_type cc mb10">
      <div class="mb10"> 
        <span class="mr20">时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">-<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}" style="width:80px;">
        <select class="select_2" name="status" style="width:70px;">
          <option value='' <if condition=" $status == '' "> selected</if>>全部</option>
          <option value="1" <if condition=" $status == 1 "> selected</if>>审核</option>
          <option value="2" <if condition=" $status == 2 "> selected</if>>未审核</option>
        </select>
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$_GET.keyword}" placeholder="请输入关键字...">
        <button class="btn">搜索</button>
        </span>
      </div>
    </div>
  </form>
  <form class="J_ajaxForm" action="" method="post">
    <div class="table_user">
      <table width="100%">
        <colgroup>
        <col width="50">
        <col width="80">
        <col width="180">
        <col width="">
        <col width="150">
        <col width="80">
        </colgroup>
        <thead>
          <tr>
            <td><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
            <td>审核</td>
            <td>用户名称</td>
            <td>作品名称</td>
            <td>时间</td>
            <td>操作</td>
          </tr>
        </thead>
        <volist name="data" id="vo">
          <tr>
            <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.id}"></td>
            <td>{$vo.status|showPass}</td>
            <td>{$vo.userid|getNickName}</td>
            <td><a href="javascript:void(0);" class="titl" oi="{$vo.image}" >{$vo.title}</a></td>
            <td>{$vo.create_time|date="Y-m-d H:i",###}</td>
              <td><a href="{:U('Suipai/edit',array('id'=>$vo['id']))}">编辑</a></td>
          </tr>
        </volist>
      </table>
      <div class="p10"><div class="pages"> {$Page} </div> </div>
     
    </div>
    <div class="btn_wrap">
      <div class="btn_wrap_pd">
        <label class="mr20 sel-all"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
        <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Suipai/batch/',array('do'=>'checkpass'))}">审核</button>
        <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Suipai/batch/',array('do'=>'cancelpass'))}">取消审核</button>
          <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Suipai/batch/',array('do'=>'nopass'))}">不通过审核</button>
        <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Suipai/batch_delete')}">删除</button>
      </div>
    </div>
  </form>
</div>
<script src="__JS__/common.js"></script>
<script src="__JS__/imagePreview.js"></script>

<style type="text/css">
.titl{ color:#333333; text-decoration:none;}
.titl:hover{ color:#FF0000; text-decoration:none}
</style>
<script type="text/javascript">
$(function(){
	$("a.titl").preview();	  
});
</script>
</body>
</html>